<html>
  <head>
    
    <title>My JSP 'modal.jsp' starting page</title>

	<script type="text/javascript">
		var obj=dialogArguments;
		function aaa(obj){
			window.returnValue=obj.value;
		}
		
	</script>
  </head>
  
  <body>
    <input onchange="aaa(this);" value=""/>
    <div id="test"></div>
  </body>
</html>
<script type="text/javascript">
		var obj=dialogArguments;
		
		document.getElementById("test").innerHTML=obj.person.name+" , "+obj.person.email;
	</script>